import http from "@/api/index";

export function getDeptTree(): Promise<any> {
  return http.request({
    url: `/admin/config/getDeptTree`,
    method: "POST",
    data:{}
  });
}

export function savedept(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deptSave`,
    method: "POST",
    data:data
  });
}

export function delDept(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/delDept`,
    method: "POST",
    data:data
  });
}
export function deptUser(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deptUser`,
    method: "POST",
    data:data
  });
}
